<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html> 
<head>
<%@ include file="../../include/easyui.jsp" %>
<%@ include file="../../include/pForm.jsp" %>
<%@ include file="../../include/easyui-layui-upload.jsp" %>
<title>固定资产查看页面</title>
<script>
	$(function(){
		fn.resetForm();
        fn.readOnly();
	});
</script>
</head>
<body>
	<div class="easyui-panel" data-options="fit:true,border:false" style="padding:10px;">
		<!-- 替换自动form表单 -->
		<form id="easyuiForm" method="post" action="#"   >
		 	<!--类名属性及默认主键id-->
			<input type="hidden" name="className" value="com.fs.jzzn.pojo.FixedAssets" />
			<input type="hidden" name="createrId" value="" />
			<input type="hidden" name="id" value="" />

		<div style="margin-bottom:20px">
		 	  <input  class="easyui-textbox"  name="no" style="width:270px;" readonly="readonly" data-options="label:'资产编号:',required:true,prefix:'ZC',timestamp:'yyMMddHHmmss' "/>
			  <select class="easyui-combobox" name="type" style="width:270px;" data-options="label:'资产类别:',required:true" 
					url="/console/combobox?valueField=dicName&textField=dicName&modleName=dictionary&pCode=C8&pCode_searchType=eq" >
			 </select>
		 
			  <select class="easyui-combobox  easyui-validatebox" name="year" style="width:270px;" data-options="label:'年份:',required:true"  s>
			  	<option value="未知">未知</option>
			  	<option value="2010">2010</option>
			  	<option value="2011">2011</option>
			  	<option value="2012">2012</option>
			  	<option value="2013">2013</option>
			  	<option value="2014">2014</option>
			  	<option value="2015">2015</option>
			  	<option value="2016">2016</option>
			  	<option value="2017">2017</option>
			  	<option value="2018" selected="selected">2018</option>
			  	<option value="2019">2019</option>
			  	<option value="2020">2020</option>
			  </select>
		 
		 	 <!-- 
			  	<input class="easyui-textbox easyui-validatebox" name="no" style="width:240px;"   data-options="label:'资产编号:',labelWidth:75,required:true"/>
			  -->
		 </div>
		 <div style="margin-bottom:20px">
		  <input class="easyui-textbox easyui-validatebox" name="name" style="width:270px;"   data-options="label:'资产名称:',required:true"/>
		  <input class="easyui-datebox easyui-validatebox" name="purchaseDate" style="width:270px;"   data-options="label:'购进日期:',labelWidth:75,required:true"/>
		  <input class="easyui-textbox easyui-validatebox" name="specifications" style="width:270px;"   data-options="label:'规格型号:',labelWidth:75,required:true"/>
		 </div>
		<div style="margin-bottom:20px">
			<select class="easyui-combobox" name="metering" style="width:270px;" data-options="label:'计量单位:',required:true" 
					url="/console/combobox?valueField=dicName&textField=dicName&modleName=dictionary&pCode=C9&pCode_searchType=eq" >
			 </select>
			<!-- 
		  <input class="easyui-textbox easyui-validatebox" name="metering" style="width:240px;"   data-options="label:'计量单位:',labelWidth:75,required:true"/>
		 	-->
		  <input class="easyui-textbox easyui-validatebox" name="count" style="width:270px;"   data-options="label:'数量:',labelWidth:75,required:true,validType:'digits'"/>
		  <input class="easyui-textbox easyui-validatebox" name="money" style="width:270px;"   data-options="label:'原值(金额):',labelWidth:75,required:false,validType:'decimals[2]'"/>
		 </div>
		<div style="margin-bottom:20px">
		  <input type="hidden" name="department"/>
			<select class="easyui-combotreegrid" name="orgNo" style="width:270px;" data-options="label:'使用部门:',panelWidth:300,panelWidth:450,required:true,
	           	idField: 'orgNo', 
	           	missingMessage:'必填项',
				treeField: 'orgName',
				sortName:'orgOrder',
				onSelect:function(row){
					$('input[name=department]').val(row.orgName);	    
				},
				sortOrder:'asc',
	            url:'/console/com.fs.base.pojo.Org/list', 
	            queryParams:{isTreeGrid:'true', treeId:'id', treePid:'parentId' },
	            columns:[[    
	                {field:'orgName',			width:190,	title:'组织名称' }
		         	,{field:'orgType',			width:70,	title:'分类' }
		         	,{field:'orgNo',				width:100,	title:'组织编码' }
		         	,{field:'orgLeaderName',	width:70,	title:'负责人'}
	            ]]"></select>		  
		  <input class="easyui-textbox easyui-validatebox" name="people" style="width:270px;"   data-options="label:'使用人:',labelWidth:75,required:true"/>
		 <input class="easyui-textbox easyui-validatebox" name="present" style="width:270px;"   data-options="label:'估计现值:',labelWidth:75,required:false,validType:'decimals[2]'"/>
		 </div>
		<div style="margin-bottom:20px">
		  <input class="easyui-textbox easyui-validatebox" name="assets" style="width:270px;"   data-options="label:'资产状态:',labelWidth:75,required:false"/>
		 </div>
		 
		 <div style="margin-bottom:20px">
		 	<input class="easyui-layuiupload" name="attachment" style="width:560px;" data-options="label:'附件:',upload:{auto:true,height:150,readonly:true}" />
		 </div>
		</form>
	</div>
</body>
</html>